package game.ui.controls
{
	import flash.events.*;
	import flash.text.*;
	import game.ui.core.*;
	import game.ui.hud.*;
	
	public class RxQuestMessageDialog extends RxDialogBase
	{
		private var m_callback:Function;
		private var m_animating:Boolean = false;
		private var m_iconPlacement:String = "left";
		private var m_paddingLeft:int = 15;
		private var m_paddingRight:int = 15;
		private var m_paddingTop:int = 50;
		private var m_paddingBottom:int = 77;
		//private var m_portrait:RxDialogPortrait;
		private var m_messageFrame:RxGamePanel;
		private var m_closeButtonFrame:RxBitmap;
		//private var m_closeButton:RxRectangularButton;
		private var m_messageField:RxTextLabel;
		private static const FRAME_WIDTH:int = 800;
		private static const MIN_MESSAGE_SIZE:int = 192;
		
		public function RxQuestMessageDialog(param1:Function = null)
		{
			m_width = FRAME_WIDTH;
			m_height = 256;
			this.SetCallback(param1);
			this.CreateChildren();
			InvalidateDisplayState();
		}
		
		public function Close(param1:Boolean = true) : void
		{
			RemoveFromLayer();
		}
		
		public function SetCallback(param1:Function) : void
		{
			this.m_callback = param1;
		}
		
		private function CreateChildren() : void
		{
			/*
			this.m_messageFrame = new RxGamePanel();
			this.m_messageFrame.ToggleCloseButton(false);
			this.m_messageFrame.width = 500;
			this.m_messageFrame.height = 200;
			this.m_messageFrame.x = 93;
			this.m_messageFrame.y = 16;
			this.m_messageFrame.SetHeaderSize(0);
			this.m_messageFrame.SetFrameBackgroundColor(0);
			addChild(this.m_messageFrame);
			this.m_portrait = new RxDialogPortrait();
			addChild(this.m_portrait);
			this.m_messageField = RxTextLabel.CreateWithStyle(RxFontStyleConstants.BODY_LARGE, 0, TextFormatAlign.LEFT, true);
			this.m_messageField.width = 280;
			addChild(this.m_messageField);
			this.m_closeButtonFrame = new RxBitmap("ui/questdialog/button_cradle.png");
			addChild(this.m_closeButtonFrame);
			this.m_closeButton = new RxRectangularButton("Continue");
			this.m_closeButton.width = 159;
			this.m_closeButton.height = 40;
			this.m_closeButton.SetCallback(this.OnCloseButtonClicked);
			addChild(this.m_closeButton);*/
		}
	}
}